package com.fcscs.cservice.ws.client.reservationservice;

import org.apache.log4j.Logger;
import org.springframework.ws.client.core.support.WebServiceGatewaySupport;

import com.fcscs.cservice.ws.schema.reservationservice.GetReservationRequest;
import com.fcscs.cservice.ws.schema.reservationservice.GetReservationResponse;

public class GetReservationClient extends WebServiceGatewaySupport {

	private static final Logger LOG = Logger.getLogger(GetReservationClient.class);

	public GetReservationResponse findResv(GetReservationRequest req) {
		GetReservationResponse resp = (GetReservationResponse) getWebServiceTemplate().marshalSendAndReceive(req);
		LOG.info("----------resv " + resp.getReservationView());
		return resp;
	}

}
